package com.atguigu.elastic.bean;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;

/**
 * @author : leimingchao
 * @date Date : 2021年10月28日 0:49
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Builder
@Document(indexName = "atguigu",type = "book")
public class Book implements Serializable {

    private static final long serialVersionUID = 4872787920587091188L;

    private Integer id;

    private String bookName;

    private String author;

}
